package com.yixin.hospital.entity.dto.req.visitTemplate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel("新增就诊模板请求体")
@Data
public class VisitTemplateAddReqDTO {

    @ApiModelProperty("父id(没有则传0)")
    @NotNull(message = "就诊模板父id不能为空")
    private Long parentId;

    private String templateCode;
    private String templateName;

    @ApiModelProperty("就诊模板选项名称")
    @NotBlank(message = "就诊模板选项名称不能为空")
    private String name;


    @ApiModelProperty("就诊模板等级")
    @NotNull(message = "就诊模板选项等级不能为空")
    private Integer level;

    @ApiModelProperty("就诊模板排序")
    @NotNull(message = "就诊模板选项排序不能为空")
    private Integer sort;

}
